package com.huifai.common.constant;

public enum ERespCode {

    /**
     * uims应用编号分配为208
     */

    //请求成功
    SUCCESS("请求成功", 0),
    DEPRECATED("接口已废弃，请查询最新接口文档", 42080000),

    //公共异常业务码
    MISSING_PARAMETER("缺少参数", 42080001),
    TYPE_MISMATCH_EXCEPTION("参数格式不匹配", 42080002),
    RESOURCE_NOT_FOUND("找不到相关资源", 42080003),
    HTTP_METHOD_NOT_SUPPORTED("http方法不支持", 42080004),
    ACTION_DUPLICATED("操作重复", 42080005),
    NO_CORRESPOND_DATA ("找不到相关数据",42080006),
    TOKEN_ERROR("无效的TOKEN",42080007),
    TOKEN_NULL("TOKEN为空",42080008),
    USER_LOCKED("账号已锁定",42080009),

    INTERNAL_ERROR("服务器内部错误", 52080000);



    private String message;
    private int code;

    ERespCode(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public String message() {
        return message;
    }

    public int code() {
        return code;
    }
}
